folder="./venv"

if [ ! -d "$folder" ]; then
  python3 -m venv venv
fi

if [ ! -f "./venv/bin/activate" ]; then
  echo "venv 安装失败"
  exit 1
fi

source ./venv/bin/activate
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple